class PageModel {
  int NextPage;
  int PerPage;
  int Total;

  PageModel(this.PerPage, this.Total, {this.NextPage = 0});

  PageModel.fromJson(Map<String, dynamic> json)
      : NextPage = json["NextPage"] ?? 0,
        PerPage = json["PerPage"],
        Total = json["Total"];

  bool get hasNextPage {
    return this.NextPage > 0;
  }
}
